import { defineStore } from "pinia"

export const useAlertDetailStore = defineStore({
    id: 'alertDetail',
    state: () => ({
        show: false,
        message: [],
        infoShow:false,
        infoMessage:[],
    }),
    actions: {
        async SetShow(show: any) {

            this.$patch({
                show: show,
            });
        },
        async SetMessage(message: any) {

            this.$patch({
                message: message,
            });
        },
         async SetInfoShow(show: any) {

            this.$patch({
                infoShow: show,
            });
        },
        async SetInfoMessage(message: any) {

            this.$patch({
                message: message,
            });
        },
    },
})